<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%
    JSONObject jsonData = new JSONObject();
    String yearMonth = Util.null2String( request.getParameter( "yearMonth" ) );
    User user =  HrmUserVarify.getUser(request,response);
    String userid = user.getUID()+"";
    rs.executeQuery( "select count(t1.id) from formtable_main_39 t join formtable_main_39_dt1 t1 on t.id=t1.mainid " +
            "where t.resourceId=? and left(t1.detail_signdate,7)=?", userid,yearMonth);
    rs.next();
    int count  = Util.getIntValue( rs.getString( 1 ) );
    jsonData.put( "count", count );
    out.print( jsonData.toJSONString() );
    bb.writeLog( "getInvoice_Ajax=" + jsonData.toJSONString() );
%>
